<template>
    <div class="destail2">
        <div class="destail22">
            <div class="destail22Box">
                <h2>监控记录</h2>
                <ul class="destail" v-for="(item,index) in listArr2" :key="index" v-show="nodata">
                    <li @click="desGo(item)"><p>{{item.MoniToringStartTime}}</p> <x-icon type="ios-arrow-right" size="" class="icon-white"></x-icon></li>
                </ul>
                <ul class="destail"  v-show="!nodata">
                    <li><p>暂无数据...</p> </li>
                </ul>
            </div>
        </div>
        <!-- <p v-if="!nodata" class="noDestail">暂无数据...</p> -->
        <noData v-if="listArr == 0"></noData>
        <myMenu @clickBack="back" backPath='/riskMonitoring'></myMenu>
    </div>
</template>
<script>
import myMenu from '@/commonComponents/menu'
export default {
  components: {
    myMenu
  },
  data () {
      return {
        nodata: true,
        parmas2: {
            allowPaging: 'true',
            business: 'GetRiskDynamicRecord',
            data: {
                ID: ''
            },
            pageIndex: 0,
            pageSize: 20,
            tokenId: '',
            userId: ''
        },
        listArr2: []
    }
  },
  created () {
      this.listArr = JSON.parse(window.sessionStorage.getItem('arr'))
      this.parmas2.data.ID = this.listArr.ID
      var token = JSON.parse(window.localStorage.getItem('userInfo'))
      this.parmas2.userId = token.userid
      this.dataArr()
  },
  mounted () {

  },
  methods: {
    back () {

    },
    desGo (item) {
        window.sessionStorage.setItem('arr2', JSON.stringify(item))
        this.$router.push('/infoDestail')
    },
    dataArr () {
      this.$axiosAjax.getConfigJson(this.parmas2).then((res) => {
        if (res.status == 200) {
            this.listArr2 = res.data.data
            if (res.data.data != null && res.data.data.length > 0) {
                this.nodata = true
            } else {
                this.nodata = false
            }
        }
      })
    }
  }
}
</script>
<style lang="less">
.destail2{
    width: 100%;
    height: 100%;
    .destail22{
        height: 100%;
        width: 100%;
        background-color: #ebeef2;
        padding-top: 10px;
        .destail22Box{
            h2{
                color: #2269ff;
                text-align: left;
                padding: 0 10px;
                height: 40px;
                line-height: 40px;
                box-sizing: border-box;
                background-color: #eee;
                em{
                    width: 80px;
                    height: 20px;
                    line-height: 20px;
                    text-align: center;
                    border-radius: 15px;
                    border: 1px solid #2269ff;
                    float: right;
                    font-size: 12px;
                    margin-top: 12px;
                }
            }
            .destail{
                width: 100%;
                background-color: #fff;
                li{
                    width: 100%;
                    height: 40px;
                    line-height: 40px;
                    padding-left: 20px;
                    box-sizing: border-box;
                p{
                        width: 300px;
                        float: left;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                }
                    .vux-x-icon{
                        fill:#000;
                        float: right;
                        width: 20px;
                        height: 20px;
                        margin: 10px 10px 0 0;
                    }
                }
            }
            .queryDiv_top{
                width: 100%;
                padding-bottom: 1px;
                background-color: #fff;
                .ul11{
                    padding: 0 10px;
                    .li{
                        padding: 10px 0;
                        border-bottom:1px solid #eee;
                        width: 100%;
                        height: 50px;
                        line-height: 30px;
                        position: relative;
                        font-size: 16px;
                        display: flex;
                        .vux-x-icon{
                            fill: #999;
                            float: right;
                            position: absolute;
                            width: 20px;
                            height: 20px;
                            top: 15px;
                            right: -10px;
                        }
                        .spa{
                            float: left;
                            height: 30px;
                            line-height: 30px;
                            width: 140px;
                            font-size: 14px!important;
                            color: #333;
                            i{
                                color: #fe0100;
                            }
                        }
                        .h4{
                            width: 375px;
                        }
                        em{
                            float: right;
                            color: #999;
                            width: 200px;
                            height: 30px;
                            font-size: 12px;
                            line-height: 30px;
                            text-align: right;
                            margin-right: 10px;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            white-space: nowrap;
                            div{
                                float: right;
                                margin-left: 20px;
                                width: 64px;
                                position: relative;
                                text-align: right;
                                color: #999;
                                input{
                                    width: 16px;
                                    height: 16px;
                                    position: absolute;
                                    top:6px;
                                    left: 10px;
                                    text-align: center;
                                }
                            }
                        }
                        h5{
                            width: 375px;
                            float: left;
                        }
                        .weui-cell{
                            padding: 0;
                            height: 28px;
                            z-index: 999999;
                            width: 259px;
                            height: 28px;
                        }
                        .vux-cell-value{
                            float: right;
                            width: 244px;
                            height: 28px;
                            font-size: 12px;
                            text-align: right;
                            color: #999;
                            margin-right: 16px;
                        }
                        .weui-cell_access .weui-cell__ft:after{
                            top: 46%;
                            width: 8px;
                            height: 8px;
                            content:0;
                        }
                        .vux-datetime .weui-cell .weui-cell_access {
                            width: 259px;
                            height: 28px;
                        }
                    }
                    .spa2{
                        float: left;
                        min-height: 30px;
                        line-height: 30px;
                        width:100%;
                        font-size: 14px!important;
                        color: #333;
                        i{
                            color: #fe0100;
                        }
                    }
                    .spa3{
                        min-height: 30px;
                        line-height: 24px;
                        width:100%;
                        font-size: 14px!important;
                        color: #999;
                    }
                    .h1{
                        min-height: 30px;
                        line-height: 30px;
                        width:100%;
                        font-size: 14px!important;
                        i{
                            color: #fe0100;
                        }
                    }
                }
                .queryBtn{
                    height: 30px;
                    line-height: 30px;
                    margin: 25px auto;
                    text-align: center;
                    width: 300px;
                    border-radius: 25px;
                    background-color: #2269ff;
                    letter-spacing: 4px;
                    color: #fff;
                }
            }
        }
    }
    .noDestail{
        background-color: #fff;
        padding: 0 10px;
        height: 50px;
        line-height: 50px;
    }
}
</style>
